#include "glob.h"

/*
 * sharedmem.h
 *
 *  Created on: Nov 11, 2009
 *      Author: nreimens
 */


#ifndef SHAREDMEM_H_
#define SHAREDMEM_H_

int init_share(sharedmem ** sm);
int flush_share (sharedmem * sm);
int store_share(sharedmem * sm, int location, char * value);
int load_share(sharedmem * sm, int location, char * value);
int _p(sharedmem * sm, int index, int id);
int _v(sharedmem * sm, int index);
int sema_init(sharedmem * sm, int index, int value);



#endif /* SHAREDMEM_H_ */
